import request from "@/utils/request";

export function loginAPI({ account, password }) {
    return request({
        url: "/x/v1/admin/login",
        method: "POST",
        data: { account, password },
    });
}

export function userInfoAPI() {
    return request({
        url: "/x/v1/admin/userInfo",
        method: "GET",
    });
}

export function logoutAPI() {
    return request({
        url: "/x/v1/admin/logout",
        method: "DELETE",
    });
}
